﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using CarAppDomain.CarParts.Entities;
using CarAppDomain.CarType.Entities;
using D.UtilSqlsugarOrm;

namespace CarAppDomain.CarType.IRepository
{
    public interface ICarTypeEntityRepository : IBaseRepository<CarTypeEntity>
    {
        /// <summary>
        /// 单个新增
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        Task<int> AddCarTypeAsync(CarTypeEntity t, List<CarPartsCarTypeEntity> carPartsCarPartsTypeList);

        /// <summary>
        /// 单个更新
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        Task<int> UpdateCarTypeAsync(CarTypeEntity t, List<CarPartsCarTypeEntity> carPartsCarPartsTypeList);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        Task<int> DeleteCarTypeAsync(List<string> ids);

    }
}
